
const check_Inteval: number = 1000 * 60 * 60 * 24;//1天检查一次

export class LogAddManager {

    public static instance: LogAddManager = new LogAddManager();

    private last_check_time: number = 0

    public checkDayLog(now: number) {
        this.checkAddDayLog(now)
    }

    private checkAddDayLog(now: number) {
        if (now - this.last_check_time >= check_Inteval) {
            let date: Date = new Date()
            // Logger.log("checkAddDayLog=", date.getHours())
            if (date.getHours() == 0) { //你见过半夜5点的篮球吗？
                this.last_check_time = now;
            }
        }
    }

}